<template>
	<view class="empty-content">
		<image class="empty-content-image" :src="typeSrc.empty" mode="aspectFit"></image>
		<view style="color: #999999;font-size: 13px">{{typeSrc.des}}</view>
	</view>
</template>

<script>
	export default {
		props: [
			"src", "des", "show"
		],


		data() {
			return {
				typeSrc: {
					des: '暂无数据',
					empty: ''
				},

			}
		},

		computed: {
			setSrc() {
				return this.typeSrc.empty;
			},
			setDes() {
				return this.typeSrc[this.des];
			},
		},
		methods: {
			goHome() {
				uni.switchTab({
					url: '/pages/index/index'
				});
			}
		}
	}
</script>

<style lang="scss">
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		height: 100vh;
		// position: fixed;
		// left: 0;
		// top: 0;
		// /* #ifdef MP-WEIXIN */
		// top: 0rpx;
		// /* #endif */
		// right: 0;
		// bottom: 0;
		background: #FFFFFF;

		&-image {
			width: 200upx;
			height: 200upx;
		}
	}
</style>